#!/usr/bin/env python
# -*- coding: utf-8 -*-

li = [174, 321, 399, 92, 566, 153, 226, 816, 856, 72]
def select_sort_simple(li):
    li_new = []
    for i in range(len(li)):
        min_val = min(li)
        li_new.append(min_val)
        li.remove(min_val)
    return li_new


def select_sort(li):
    for i in range(len(li)-1):
        min_loc = i
        for j in range(i+1,len(li)):
            if li[j] < li[min_loc]:
                min_loc = j
        li[min_loc],li[i] = li[i],li[min_loc]
        #print(li)

